<template>
  <div class="left-side">
    <div class="left-side-inner">
      <router-link to="/" class="logo block">
        <h2>舆论监督系统</h2>
      </router-link>
      <el-menu
        class="menu-box"
        router
        :default-active="$route.path">
        <mymenu :menuList="nav_menu_data"></mymenu>
      </el-menu>
    </div>
  </div>
</template>
<script type="text/javascript">
  import mymenu from './mymenu'

  export default {
    name: 'slide',
    data() {
      return {
        nav_menu_data: [
          {
            title: "看板",
            path: "/home",
            icon: "el-icon-star-off"
          },
          {
            title: "系统监控",
            path: "/consensus/fold",
            icon: "el-icon-news",
            child: [{
              title: "舆情列表",
              path: "/consensus",
              icon: "el-icon-tickets",
            },
              {
                title: "文章列表",
                path: "/article",
                icon: "el-icon-tickets",
              },
              {
                title: "评论列表",
                path: "/comment",
                icon: "el-icon-tickets",
              },{
                title: "受众列表",
                path: "/reviewer",
                icon: "el-icon-tickets",
              }]
          },
          {
            title: "舆情分析",
            path: "/seller/fold",
            icon: "el-icon-search",
            child: [
              {
                title: "舆情详情",
                path: "/consensus/detail",
                icon: "el-icon-date",
              },
              {
                title: "搜索词分析",
                path: "/keyword/keyword",
                icon: "el-icon-tickets",
              }, {
                title: "文章分析",
                path: "/article/detail",
                icon: "el-icon-picture-outline",
              },{
                title: "类目分析",
                path: "/topic/type",
                icon: "el-icon-document",
              }, 
              // {
              //   title: "受众分析",
              //   path: "/reviewer/detail",
              //   icon: "el-icon-edit-outline",
              // }
              ]
          },
          {
            title: "预警任务",
            path: "/product",
            icon: "el-icon-message",
            child: [
              {
                title: "任务列表",
                path: "/warning/index",
                icon: "el-icon-tickets",
              },
              {
                title: "新增/修改",
                path: "/warning/create",
                icon: "el-icon-edit",
              },
              {
                title: "监督结果",
                path: "/warning/result",
                icon: "el-icon-phone-outline",
              }]
          }]
      }
    },
    components: {
      mymenu
    }
  }
</script>

<style>
  h2 {
    color: #65cea7;
  }
</style>


